package com.dlc.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Yami
 */
@Data
@TableName("tz_refund_addr")
public class RefundAddr implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    @Schema(description = "商家退货地址id" )
    private Long refundAddrId;

    @Schema(description = "店铺id" )
    private Long shopId;

    @Schema(description = "收货人名字" )
    private String receiverName;

    @Schema(description = "收货人手机号码" )
    private String receiverMobile;

    @Schema(description = "收货人座机" )
    private String receiverTelephone;

    @Schema(description = "邮政编码" )
    private String postCode;

    @NotNull(message = "省id不能为空")
    @Schema(description = "省id" )
    private Long provinceId;

    @Schema(description = "省" )
    private String province;

    @NotNull(message = "城市id不能为空")
    @Schema(description = "城市id" )
    private Long cityId;

    @Schema(description = "城市" )
    private String city;

    @NotNull(message = "区id不能为空")
    @Schema(description = "区id" )
    private Long areaId;

    @Schema(description = "区" )
    private String area;

    @Schema(description = "具体地址" )
    private String addr;

    @Schema(description = "默认地址(0:不是 1:是)" )
    private Integer defaultAddr;

    @Schema(description = "状态(1:可用 0:不可用 -1:已删除)" )
    private Integer status;

    @Schema(description = "更新时间" )
    private Date updateTime;

    @Schema(description = "创建时间" )
    private Date createTime;

}
